# -*- encoding: utf-8 -*-
"""

PyCharm lambda函数的使用
2024年10月20日22时14分
by wenyang

"""


def main():
    foo = lambda x, y: x + y
    print(foo(2, 3))
    str_list = ["hello", "world", "javascript"]
    print(sorted(str_list, key = lambda x: len(x), reverse = False))


if __name__ == "__main__":
    main()
